<h1>Editing event</h1>

<%= error_messages_for :event %>

<% form_for(:event, :url => event_path(@event), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', event_path(@event) %> |
<%= link_to 'Back', events_path %>